package com.jt.www.domain.enums.pc;

/**
 * 渠道编码
 *
 * @author lq
 * @create 2020-04-07 15:24
 */
public enum MarketerStatusEnum {
    STATUS_0("已认证", "0"),
    STATUS_1("未认证", "1");

    private String msg;
    private String code;

    MarketerStatusEnum(String msg, String code) {
        this.msg = msg;
        this.code = code;
    }

    public static String getMsgByCode(String code) {
        for (MarketerStatusEnum marketerStatusEnum : MarketerStatusEnum.values()) {
            if (marketerStatusEnum.code.equals(code)) {
                return marketerStatusEnum.msg;
            }
        }
        return "";
    }

    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }
}
